<?php
/**
 * File:          KValidator_Parameter_Upload_Min
 * Description:   -
 * Author:        Kovac "Kovacou'" Alexandre (www.kovacou.fr)
 * Last Update:   21/04/2011
 */

   class KValidator_Parameter_Upload_Min implements KValidatorParameter {
      public  $x,
              $y;
      
      public function valid ($value, $config) {
         $dim = getimagesize ($value["tmp_name"]);
         
         if ($dim[0] < $this->x || $dim[1] < $this->y)
            return "L'image est trop petite.";
      }
   }
 
/**
 * End
 * Of
 * File
 */
?>